package com.nebula.common.listener;

import com.nebula.common.util.PropertyUtil;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;

/**
 * Created by Mtime on 2017/9/5.
 */
public class ApplicationStartUpListener  implements ApplicationListener<ApplicationStartedEvent> {


    @Override
    public void onApplicationEvent(ApplicationStartedEvent event) {
        PropertyUtil.loadAllProperties();
        //System.out.println( PropertyUtil.getProperty("jdbc.driverClassName"));
        System.out.println("ApplicationStartUpListener EXEC");
    }
}